#pragma once

/////////////
// Include //
/////////////

#include "album.h"

///////////
// Class //
///////////

class Album;

class XmlExtractor {
public:
	XmlExtractor();
	virtual			~XmlExtractor();

	CString			getId(void);
	void			initExtractor(CString newid);
	int				getPages(void);
	int				loadFile(CString file);
	int				parse();

private:

	CList<Album*, Album*>	_albums;
	int				pages;
	int				tryAgain;
	CString			data;
	CString			xmlTag;
	CString			xmlData;
	CString			id;
	CString			url;
public:
	CList<Album*, Album*>* getAlbums(void);
	bool freeAlbums(void);
};

/////////
// End //
/////////

